package com.lpf.state;

// 具体状态A
class ConcreteStateA implements State {
    @Override
    public void handle(Context context) {
        System.out.println("当前状态是 A，即将切换到状态 B");
        context.setState(new ConcreteStateB());
    }
}
